import { request } from "@/api/request";
/* 查看项目 */
export function get(parameter: object) {
  return request({
    url: `/project`,
    method: "get",
    params: parameter,
  });
}
/* 增加项目 */
export function add(data: object) {
  return request({
    url: `/project`,
    method: "post",
    data: data,
  });
}
/* 更新项目 */
export function update(data: object) {
  return request({
    url: `/project/update`,
    method: "post",
    data: data,
  });
}
/* 删除项目 */
export function del(id: number) {
  return request({
    url: `/project/delete/${id}`,
    method: "delete",
  });
}

export default {
  get,
  add,
  update,
  del,
};
